/*
 *
 *      Copyright (c) 2018-2025, dmp All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: dmp
 *
 */

package org.jeecg.modules.paycenter.channel.constant;

/**
 * @author dmp
 * @date 2017/10/29
 */
public interface CommonConstants {

	/**
	 * 成功标记
	 */
	Integer SUCCESS = 0;

	/**
	 * 失败标记
	 */
	Integer FAIL = 1;

	/**
	 * 登录用户Token令牌缓存KEY前缀 */

	String PREFIX_USER_TOKEN  = "prefix_user_token_";
	String TOKEN_IS_INVALID_MSG = "Token失效，请重新登录!";

	/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
	Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
	/** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
	Integer SC_OK_200 = 200;

	/**访问权限认证未通过 510*/
	Integer SC_JEECG_NO_AUTHZ=510;

	String SYS_USERS_CACHE = "sys:cache:user";

	public final static String CLOUD_SERVER_KEY = "spring.cloud.nacos.discovery.server-addr";


	public final static String X_ACCESS_TOKEN = "X-Access-Token";
	/**
	 * 缓存用户信息
	 */

	String STRING_NULL = "null";

	public static final String TEST_DEMO_CACHE = "test:demo";

	/**
	 * 手机号验证
	 */
	public static final String REGEX_MOBILE = "^((13[0-9])|(14[5|7])|(15([0-9]))|(16([0-9]))|(17[0-9])|(18[0-9])|(19[0-9]))\\d{8}$";
	/**
	 * 系统日志类型： 操作
	 */
	public static final int LOG_TYPE_2 = 2;

	/**
	 * 操作日志类型： 查询
	 */
	public static final int OPERATE_TYPE_1 = 1;

	/**
	 * 操作日志类型： 添加
	 */
	public static final int OPERATE_TYPE_2 = 2;

	/**
	 * 操作日志类型： 更新
	 */
	public static final int OPERATE_TYPE_3 = 3;

	/**
	 * 操作日志类型： 删除
	 */
	public static final int OPERATE_TYPE_4 = 4;

	/**
	 * 操作日志类型： 倒入
	 */
	public static final int OPERATE_TYPE_5 = 5;

	/**
	 * 操作日志类型： 导出
	 */
	public static final int OPERATE_TYPE_6 = 6;
}
